<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>BADJOGRAPHY :: <?=$title?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style media="screen" type="text/css">
<!--
@import url("http://localhost/badjography/includes/js/sos/widget/templates/ImageGallery.css");
-->
</style>

<?php
/*
 * <joebenick.badiola@badjography.com> 20090716: added zeratool (www.zeratool.com)
 * 					helper to include (for now) all js files located at system/helpers/mypage_helper.php
 */
echo include_css('style.css');
echo include_css('video/videobox.css');
echo include_js('video/mootools.js');
echo include_js('video/swfobject.js');
echo include_js('video/videobox.js');
/*
 * end
 */
 
?>

</head>

<body>
	<div id="header">
		<?=$this->load->view('header');?>
	</div>
	
	<div id="content">
		<?=$this->load->view('menu');?>	
		<div class="galleryflickr">
			<?php
				foreach ($photos as $photo)
				{
					echo "<a href=\"".$this->phpflickr->buildPhotoURL($photo, "Medium")."\" rel=\"vidbox\" title=\"$photo[title]\">";					
					echo "<img alt=\"$photo[title]\" src=\"" . $this->phpflickr->buildPhotoURL($photo, "Square") . "\" width=\"75\" height=\"75\" class=\"imgborder\" />";
					echo "</a>\n";
				}
							
				$back = $page - 1; 
				$next = $page + 1; 
				
				echo "<p id='nav'>";

				if($page > 1) 
				{ 
					echo "<a href='".base_url()."gallery/index/page:$back/'>&laquo; <strong>Prev</strong></a>"; 
				} 
			
				if($page != $pages) 
				{ 
					echo "<a href='".base_url()."gallery/index/page:$next/'><strong>Next</strong> &raquo;</a>";
				} 
				
				echo "</p>";
							
				echo"<p>Page $page of $pages</p>";
				echo"<p class=\"note\">$total photos in the gallery</p>";
			?>
		</div>		
	</div>
	
	<?=$this->load->view('footer');?>
</body>
</html>
